Part Number Hot Search : 
NCE60H12 21000 A2715 2SB0935 20TT100 R1161N18 GBP200 TFS1603
Product Description
Full Text Search
 

To Download ATSTK504 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  table of contents table of contents .................................................................... 1 stk504 user guide ......................................................................................... 2 introduction ............................................................................................................... 2 features ............................................................................................................................... ... 2 known issues .......................................................................................................... 4 getting started ........................................................................................................ 5 hardware overview ............................................................................................................. 5 mounting the stk504 ......................................................................................................... 6 placing the avr in the zif socket .................................................................................. 6 running the demo application ......................................................................................... 7 programming the avr ......................................................................................... 8 in-system programming .................................................................................................... 8 high-voltage programming ............................................................................................... 9 j t ag programming ............................................................................................................... .. 10 stk504 clock sources ...................................................................................... 12 the clock switch ................................................................................................................. 1 2 ext ? stk500 as cl ock source......................................... ...................................................... 1 2 lf ? low-f r equency 32khz crystal . ........................................................................................ 1 2 hf ? hi gh-frequency crystal .............................................. ..................................................... 1 2 fuse settings ............................................................................................................... 13 using the lcd ....................................................................................................... 14 connecting to the on-board lcd .................................................................................. 1 4 connecting to other disp lays ....................................................................................... 14 debugging with jtagice mkii ....................................................................... 15 connecting the jtagice ................................................................................................ 1 5 troubleshooting guide ....................................................................................... 16 lcd problems ..................................................................................................................... 1 6 programming problems ............................................................................................... 16 general problems ........................................................................................................ 17 appendix a port connectors .......................................................................... 18 appendix b lcd pinout and segment mapping .................................... 19 1
stk504 user guide introduction stk504 is a top module to the stk500 development board from atmel corporatio n. it adds support for the 100- pin avr micro c ontrollers listed in the feature list below. stk50 4 in cludes con nectors and hardware a llowing full utiliz ation of the features of these devices, while the zero inserti on force (zif) so cket makes it easy to use tqfp packages for prototypi ng. this user guide is a general getting started guide as well as a complete technic a l reference for advanced users. included in the kit is a pre-programm ed atmega3290. insert the device in the zif socket and the demonstration app licatio n will start immediately. figure 1-1: the stk504 starter kit features ? supports the atmega3290 and atmega649 0 with built-in lcd controller ? supports the atmega3250 and atmega6450. ? lcd glass for demonstrating the lcd controller ? connector for using an external lcd display ? supported by avr st udio 4 ? zero inserti on force (zif) socket for 100-pin tqfp packages ? supports high voltage parallel pr ogramming through stk500 ? supports serial programming through stk500 ? port connectors for port e, f g, h and j 2
? lcd and ot her peripherals can be disconnect ed from the device ? jtag connector for on-chip debugging us ing jtagice mkii ? on-board 32 khz crystal for easy real time clock implementations ? pre-programmed atmega3290 wit h example application 3
known issues january 2005: there are no known issues. 4
getting started this section describes how to connect the stk504 onto the stk500, how to place the avr in the zif socket and c onnect cables to different peri pherals. hardware overview the stk504 is a flexible platform for debugging the 100-pin lcd avrs. the card offers lots of connec tors so you can connect to your own hardware, or you can use it as it is. figure 3-1: stk504 zif socket: this is the place to put your avr sample. see placin g the avr in t he zif socket chapter for more details. lcd pins: this connector is wired to the on-board lcd. it is usually connected to the avr segment pins connector. consult the lcd section for more information. avr segment pins: this conne ctor is wired to the lc d pins on the avr. it is usually connected to the lcd pins connector. if you want to connect your own lcd, then use this connector. consult the lcd section for more information. port connectors: the avr's porte, portf, portg, porth and portj are available on five connectors, each one marked with the port name. each of the connectors has the port signals and a target voltage an d ground pin. see appendix a for description and pinout. clock switc h : this switch select what clock course is routed to the xtal/tosc pins on the avr. the switch has three states, x = cl ock signal from stk500, lf = onboard 32khz crystal and hf is on-board crystal socket. see clock 5
sources for more information. crystal socket: in this socket you can mount a cryst al of your choosing. set the clock switch to hf. see clock sources for more in formation. 32khz crystal: this 32khz crystal can be routed to the avr through the clock switc h . set the switch to lf. see clock sources for more information. jtag: here you can connect your jtagice mkii or other jtag test equipment. see the jtag connection chapter for a detailed description. sprog: the avr c an be programmed through this connector using the isp programming mode. see in-system programming for more informa tion. mounting the stk504 the first thi ng you should do is to mount the stk504 onto the stk500. 1. turn off the power on stk500. 2. remove any other top card from the stk500. 3. remove an y avr mounted in any of the sockets on the stk50 0 . 4. place the stk504 on top of the s t k500. make sure the expand0 and expand1 connectors on both cards a lign properly (see figure 3-2). figure 3-2: mounting the stk504 placing the avr in the zif socket the zif socket located on the stk504 board takes a vrs with lcd controller in 6
100 pin tqfp packages. 1. make sure the stk500 power is turned off 2. place your avr sample in the socket as shown in figure 3-3. figure 3-3: placing the avr in the zif socket pay attention to the pin 1 marking on t he chip and on the socket. pin 1 on the zif socket is identified by the chamfered cor ner. it is also marked with the white line on the stk504. running the demo application the avr d e vice supplied with the kit comes pre-progra mmed with a demo applic ation that uses the on-boar d lcd. follow this check list: 1. mount the stk504 on the stk500 2. place the avr with the programmed demo application in the zif socket 3. connect the lcd cable 4. make sure the vtarg et jumper on stk500 is mounted. 5. set the switch on stk504 to the lf position. 6. turn on power on stk500 the demo applic ation should now run, fl ashing some of the lcd segments and displaying some text. the source code and hex file for the demo can be downloaded from the atmel web site. 7
programming t h e avr there are four different ways of programming the avr on stk504: 1. in-system programming 2. high-voltage programming 3. jtag programming 4. self-programming self programming is not described in this document. please consu l t the avr' s datasheet. the following sections will describe how to connect the appropriate cables. see the stk50 0 user guide for how to use the avr studio programming dialog . in-system programming to program the device on stk504 usi ng the in-system programming (isp) mode, you must connect a 6-pin cabl e between the isp6pin connector on stk500 and the sprog connector on stk504 as shown in figur e 4-1. also mount a jumper between pin 6 a nd 8 on the portg header. then start the avr programmer found on the tools menu in avr studio ( " tools/pro g ram avr/ connect..."). figure 4-1: isp programming 8
to be able to program the avr us ing i sp proramming, the avr mu st have isp programming enabled (the isp programming enable fuse must be set). isp programming can be enabled by high-voltage programming or jtag programming . please consult the fuses section in the stk500 documentation. high-voltage programming high-voltage programming requi res the target voltage to be set to 5v. if you have any external hardware connect ed to stk504/stk500 that doesn not tolerate 5v, it must be disconnect ed before you high-vo lt age program the avr. to program the avr mounted on stk504 using high-voltage pr ogramming, follow thes e steps: 1. turn off the stk500 power switch 2. disconnect from stk500 and stk504 any hardware that does not tolerate 5v. 3. connect the progctrl to portd and progdata to portb on the stk500 as shown on the figure 4-2 below. 4. set jumpers and switches accroding to this table 4-1. 5. turn on stk500 power. 6. then start the avr pr ogrammer found on the tools menu in avr studio ("tools/program avr/ connect...") figure 4-2: high-volt age programming setup 9
table 4-1: high-voltage pr ogramming jumper settings stk50 0 vtarget mounted aref optional reset mounted xtal1 mounted oscsel mounted, pin 1 and 2 bsel 2 mounted pjump open stk50 4 xtal switch ext positio n portg short pin 6 and 8 after programming is completed, make sure you remove the cables between progctrl, portd, progdata and portb. also remove the bsel 2 jumper. jtag programming you can also use the jtagice mkii to prorgam an avr mounted on the stk504. in order to do this, the a vr's ocd enable fuse must be set. this fu se can be enabled by isp programming or high-voltage programming . follo w these steps to jtag program the avr: 10
1. turn off the stk500 power switch 2. remove the reset jumper on stk50 0 3. mount a jumper between pin 6 a nd 8 on the portg header on stk504 4. connect the jtagice probe to the st k504 jtag connector as shown in figure 4-3 5. turn on stk500 and j t agice power 6. then start the avr pr ogrammer found on the tools menu in avr studio ("tools/program avr/ connect...") figure 4-3: jtag programming 11
stk504 clock sources the stk5 0 4 can supply three kinds of external clock s ources to the avr mounted in the zif socket: on-board 32k hz crystal, a higher frequency crystal mounted in the on-board socket and a clock supplied from stk500. the clock switch the clock switch has three positions, ext, lf and hf as shown in figure 5-1. see table 5-1 for functi on. table 5-1: clock switc h positions position function ext clock from stk50 0 . (see stk50 0 documentation for mo re information.) lf on-board 32khz crystal hf crystal placed in the socket marked hf on stk50 4 figure 5-1: clock switc h ext ? stk5 00 as cloc k sourc e if you put the switch in the ext position, yo u will sup p ly the externally gen erated clock (from stk500) to the xtal/tosc pins of the av r. check the stk500 help file for more information on how to set the different clock options. lf ? low-f r e quen cy 32khz crystal the stk504 has a 32khz (32,768hz) cryst al that can be connected to the xtal/tosc pins when the switch is set to the lf position. hf ? high -fr e quen cy cry s tal 12
there is also a crystal socket on stk504 where you can place a crystal. this is to enable high-frequency crystals (>8mhz) to be used. because of long wires and large capacitances on the clock nets on stk500, you should put your hf crystal on stk504 and not in the socket on stk500. fuse settings to use the different clock options , t he avr's programmable fuses must be set right. consult the avr's datasheet and the s t k500 programming section on how to set the appropriate fuses. 13
using the lcd the stk504 comes with a lcd glass that avrs with lcd controller ca n utilize . th e 100-pin members of the lcd avr family can drive lcds with up to 160 segments on four back-planes. the on-board lcd has 160 segments as shown below. figure 6-1: the lcd connecting to the on-board lcd to utilize th e on-board lcd, conn ect the supplied 44-le ad flat cable between the lcd pins connector and the avr segment pins as shown on the picture below. this will conn e c t the avr's lcd seg m ent pins and common pins to the appropriate pins on the display. the lcd segment mapping can be found in appendix b. figure 6-2: the lcd c able connecting to other displays if you have your own lcd you would lik e to use with the stk504, you can do so by connecting it to the avr segment pins connecto r. pay attention to the pin 1 marking. the connector pinout can be found in appendix b. 14
debuggi ng with jtagice mkii atmel's j t agice mkii can debug avrs th at supports the jtag or the debugwire debugger interface. connecting the jtagice figure 7-1: connecting the jtagice to stk504 connect the jtagice probe to the jtag connector as show in the figure above. to be able to use this interface for debuggi ng, you must also remove the reset jumper from stk500. 15
troubleshooting gui d e this section contains informati on on common problems and solutions. lcd probl ems problem cause solution nothing is shown on the lcd lcd not connected to avr connect the flat cable between the avr segmen pins and lcd pins connector s. see also using the lcd . nothing is shown on the lcd faulty lcd initia lization check your code that i n itializes the lcd driver. the applic ation note "avr0 65 l cd driver for the stk502 lcd" des cribes how to control the lcd-display nothing is shown on the lcd the update frequency is not corre ct. check the clock prescaling in your initia lizatio n. check t hat the clock source selected on stk504 is correct. see stk504 clock sources for more information. some lcd segments seem stuck. some of the port pins used for dri v ing the lcd are also connected to something else. check that the pins used to drive the lcd are not connected to something else on either stk500 or stk504. programming problems p r o b l e m c a u s e s o l u t i o n isp programming does not work isp cable is not connected connect a 6-pin cable between the isp6pin connector on stk500 and the isp connector on stk504. see also programming the avr. isp programming does not work the reset signal is not connected to the av r on stk50 4 mount a jumper on pin 6 and 8 on portg. isp programming d o e s n o t w o r k the avr i s running at too low clock frequency. make sure the clock switch on stk500 is in the right position. in the board page of the programming dialog in avr studio, try reducing the clock frequency to less or equal to the frequency the avr is running at. high-voltage programming does not work. the 10-pin cables are not connected correctly. see the programming the avr chapter for setup. 16
high-voltage programming does not work. the bsel 2 , oscsel, reset an d vtarget jumpers on stk500 are not set right. the jumper on pin 6 and 8 on the portg header is not mounted see the programming the avr chapter for setup. high-voltage programming does not work. the stk504 clock switch is in the wrong position. set the switch to the ext position. see also programming the avr. general problems p r o b l e m c a u s e s o l u t i o n some of the port pins are not workin g . the avr i s not properly mounted in the zif socket. make sure the chip is properly aligned in the socket. when the spring-loaded latch is released, the chip should fit nicely into the bottom of the socket. the code isn't running. the avr h as no/wrong clock source. according to the c l ock fuse setting, select the appropriate clock source on stk500 and stk5 04. check the oscsel jumper on stk500 and clock switch o n stk504. if you are using a crystal in one of the sockets, check that it is firmly mounted in its socket. the avr will not run on x mhz, but works ok on lower frequencies. the clock frequency is exceeding the clock rate of the avr (at a certain operating voltage). check that you are running the avr within specifications . check the speed grade of the avr an d consult the datasheet for operating frequencies and voltages. the avr will not run on x mhz, but works ok on lower frequencies. i have a x mhz crystal mounted on stk50 0 crystals should be placed in the crystal socket on stk504. place the crystal in the socket on stk504. set the clock switch to the hf position. 17
appendi x a port connectors the stk504 has five port connectors in addition to those available on stk500. these are porte, portf, portg, po rth and portj. the pinout of each connector is described below. figure a-1: stk504 port connectors table a-2: stk504 port connectors pinout port e pe0 1 2 pe1 pe2 3 4 pe3 pe4 5 6 pe5 pe6 7 8 pe7 gnd 9 10 vtg port f pf0 1 2 pf1 pf2 3 4 pf3 pf4 5 6 pf5 pf6 7 8 pf7 gnd 9 10 vtg port g pg0 1 2 pg1 pg2 3 4 pg3 pg4 5 6 pg5 7 8 rst gnd 9 10 vtg port h ph0 1 2 ph1 ph2 3 4 ph3 ph4 5 6 ph5 ph6 7 8 ph7 gnd 9 10 vtg port j pj0 1 2 pj1 pj2 3 4 pj3 pj4 5 6 pj5 pj6 7 8 gnd 9 10 vtg 18
appendi x b lcd pinout and segm ent mapping this appendix shows the lcd connector pinout and the lcd segment mapping. table b-1: avr segment pins seg me nt por t co nne ctor pin s por t seg me nt co m0 pa 0 1 2 pa 1 co m1 co m2 pa 2 3 4 pa 3 co m3 se g0 pa 4 5 6 pa 5 se g1 se g2 pa 6 7 8 pa 7 se g3 se g4 pg 2 9 10 pc 7 se g5 se g7 pc 6 11 12 ph 3 se g7 se g8 ph 2 13 14 ph 1 se g9 se g1 0 ph 0 15 16 pc 5 se g1 1 se g1 2 pc 4 17 18 pc 3 se g1 3 se g1 4 pc 2 19 20 pc 1 se g1 5 se g1 6 pc 0 21 22 pg 1 se g1 7 se g1 8 pg 0 23 24 pd 7 se g1 9 se g2 0 pd 6 25 26 pd 5 se g2 1 se g2 2 pd 4 27 28 pd 3 se g2 3 table b-2: lcd pins lcd pin conn ector pins lcd pin 21 1 2 22 23 3 4 24 37 5 6 38 39 7 8 40 41 9 10 42 43 11 12 44 1 13 14 2 3 15 16 4 5 17 18 6 7 19 20 8 9 21 22 10 11 23 24 12 13 25 26 14 15 27 28 16 17 29 30 18 19 31 32 20 21 33 34 22 23 35 36 24 25 37 38 26 27 39 40 28 29 41 42 30 31 43 44 32 19
se g2 4 pd 2 29 30 pd 1 se g2 5 se g2 6 pd 0 31 32 pj6 se g2 7 se g2 8 pj5 33 34 pj4 se g2 9 se g3 0 pp j3 35 36 pj2 se g3 1 se g3 2 pg 4 37 38 pg 3 se g3 3 se g3 4 pj1 39 40 pj0 se g3 5 se g3 6 ph 7 41 42 ph 6 se g3 7 se g3 8 ph 5 43 44 ph 4 se g3 9 the stk5 0 4's on-board lcd disp lay is mapped into the avr's l c d data registers as shown below. figure b-1: lcd segments table b-3: lcd segment mapping comm on lines bits registe rs 7 6 5 4 3 2 1 0 com3 9a 9b 10a 10b 11a 11b 12a 12b lcdd r19 20
com3 avr s7 s8 s9 7c key 7m 7d lcdd r18 com3 6c wrm 6m 6d 5c 8bc 5m 5d lcdd r17 com3 4c 8g 4m 4d 3c in 3m 3d lcdd r16 com3 2c nb 2m 2d 1c bel 1m 1d lcdd r15 com2 9f 9g 10f 10g 11f 11g 12f 12g lcdd r14 com2 sg2 s5 s6 s10 7h 7n 7l 7e lcdd r13 com2 6h 6n 6l 6e 5h 5n 5l 5e lcdd r12 com2 4h 4n 4l 4e 3h 3n 3l 3e lcdd r11 com2 2h 2n 2l 2e 1h 1n 1l 1e lcdd r10 com1 9e 9c 10e 10c 11e 11c 12e 12c lcdd r9 com1 sg1 s3 s4 s11 7b 7k 7j 7g lcdd r8 com1 6b 6k 6j 6g 5b 5k 5j 5g lcdd r7 com1 4b 4k 4j 4g 3b 3k 3j 3g lcdd r6 com1 2b 2k 2j 2g 1b 1k 1j 1g lcdd r5 com0 9d out 10d p 11d col 12d ice lcdd r4 com0 sg0 s1 s2 s0 su 7a 7i 7f lcdd r3 com0 sa 6a 6i 6f fr 5a 5i 5f lcdd r2 com0 th 4a 4i 4f we 3a 3i 3f lcdd r1 com0 tu 2a 2i 2f mo 1a 1i 1f lcdd r0 ? atmel cor poration 2005 . all rights rese rved. atmel?, logo a n d combi nation s thereof, avr?, and av r stu d io? are regi stered t r a d e m arks, an d e v e r ywh e re y ou a r e sm are the tra dem arks of atmel co rp oration o r it s subsi d ia rie s . other term s and produ ct name s m a y be tradem arks of others. 21


▲Up To Search▲   

 
Price & Availability of ATSTK504

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X